package com.yiyahui.project.erp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyahui.framework.aspectj.lang.annotation.Excel;
import com.yiyahui.framework.web.domain.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 会员积分流水对象 yiya_member_detail
 * 
 * @author yiyahui
 * @date 2020-06-12
 */

@ApiModel(value="会员积分流水对象")
public class YiyaMemberDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 会员id */
    @ApiModelProperty(value="会员id")
    @Excel(name = "会员id")
    private Long memberId;

    /** 积分变动 */
    @ApiModelProperty(value="积分变动")
    @Excel(name = "积分变动")
    private Long scoreChange;

    /** 变动用途 */
    @ApiModelProperty(value="变动用途")
    @Excel(name = "变动用途")
    private String changeReason;

    /** 备注 */
    @ApiModelProperty(value="备注")
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setScoreChange(Long scoreChange) 
    {
        this.scoreChange = scoreChange;
    }

    public Long getScoreChange() 
    {
        return scoreChange;
    }
    public void setChangeReason(String changeReason) 
    {
        this.changeReason = changeReason;
    }

    public String getChangeReason() 
    {
        return changeReason;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("scoreChange", getScoreChange())
            .append("changeReason", getChangeReason())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
